package main

import "fmt"

func main() {
	const len int = 10
	var array [len]int

	for i := 0; i < len; i++ {
		array[i] = i + 1
	}
	array[0] = 100 // 修改第一个元素

	for i, data := range array {
		fmt.Println("i =", i, "array[i] =", data)
	}
}
